/**************************************************
|	File:		Armor.h
|	Author:		Benjamin Budian
|	Course:		SGD
|	Purpose:	Handles the armor drops
**************************************************/
#pragma once
#include "entity.h"
#include "../SGD Wrappers/IListener.h"

enum ArmorPieces				{ FEET, HANDS, LEGS, HEAD, CHEST, SHOULDER, NUM_ARMOR_PIECES };

class CArmor :
	public CEntity , public IListener
{
public:

	CArmor(void);
	virtual ~CArmor(void);

	virtual void Update			( float fElapsedTime )				override;
	virtual void Render			( void )							override;

	int GetArmorValue() { return m_eArmorValue; }
	ArmorPieces GetArmorType() { return m_eArmorType; }

	void SetArmorType(ArmorPieces eArmorType);

	virtual void HandleEvent( CEvent* pEvent )	override;

	void SetDebugMode(bool bDebug) { m_bDebug = bDebug; }


private:
	enum ArmorValues				{ HEAD_VALUE = 2, SHOULDER_VALUE = 1, LEGS_VALUE = 4, HANDS_VALUE = 1, FEET_VALUE = 2, CHEST_VALUE = 8 };

	ArmorPieces m_eArmorType;
	ArmorValues m_eArmorValue;

	int m_nImageID;

	bool m_bDebug;

};

